//
//  UpImageDownTextButton.m
//  News
//
//  Created by weige on 16/6/14.
//  Copyright © 2016年 weige. All rights reserved.
//

#import "UpImageDownTextButton.h"

@implementation UpImageDownTextButton

-(void)layoutSubviews
{
    [super layoutSubviews];
    //文字自适应
    [self.titleLabel sizeToFit];
    self.titleLabel.frame=CGRectMake(0, self.frame.size.height-15, self.frame.size.width, self.titleLabel.frame.size.height);
    self.titleLabel.textAlignment=NSTextAlignmentCenter;
    self.imageView.frame=CGRectMake(0, 0, self.frame.size.width, self.frame.size.height-15);
    self.imageView.contentMode=UIViewContentModeCenter;
}
@end
